from transformers import BertTokenizer, BertForSequenceClassification

model_dir = "/Users/wupeng/pythonProjects/huggingface/models/bert-base-chinese"
tokenizer = BertTokenizer.from_pretrained("bert-base-chinese", cache_dir=model_dir)
model = BertForSequenceClassification.from_pretrained("bert-base-chinese", cache_dir=model_dir)
 